package cn.cvs.service.supper;

import cn.cvs.dao.supper.SupperMapper;
import cn.cvs.pojo.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class SupperServiceImpl implements SupperService{
    @Autowired
    private SupperMapper supperMapper;

    public SupperMapper getSupperMapper() {
        return supperMapper;
    }

    public void setSupperMapper(SupperMapper supperMapper) {
        this.supperMapper = supperMapper;
    }

    @Override
    public int addSupper(Supplier supplier) {
        int result= supperMapper.addSupper(supplier);
        return result;
    }

    @Override
    public int delSupplier(int id) {
        return supperMapper.delSupplier(id);
    }
}
